(function($){
	
    $(function(){
    	
		$("#loginBox").dialog({
            autoOpen: true,
            height: 300,
            width: 420,
            modal: true,
            resizable: false,
            open: function(){
            	$('.ui-dialog-titlebar-close').hide();
            },
            buttons: {
                '确定': function(){
					var flag = $(this).find('form').validate(VALIDATE.login).form();
					if (flag) {
						alert('ok');
						window.location.href = 'active-list.html';
					}
                }
            }
        });
        
    })

})(jQuery);